from .models import NewsChannel


def get_channels(request):
    channels=NewsChannel.objects.order_by('id')
    for channel in channels:
        print(channel.url)

    return {'channels':channels}


